// Device type enum
export enum DeviceType {
    PHONE = "phone",
    TABLET = "tablet",
}

// Current device type
let currentDeviceType: DeviceType = DeviceType.PHONE

// Set device type
export const setDeviceType = (deviceType: DeviceType) => {
    currentDeviceType = deviceType
}

// Get device type
export const getDeviceType = (): DeviceType => {
    return currentDeviceType
}

// Check if device is tablet
export const isTablet = (): boolean => {
    return currentDeviceType === DeviceType.TABLET
}

